package com.lzy.shops.service.impl;

import com.lzy.shops.bean.Collection_shops;
import com.lzy.shops.mapper.Collection_shopsMapper;
import com.lzy.shops.service.Collection_shopsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collection;

@Service
public class Collection_shopsServiceImpl implements Collection_shopsService {

    @Resource
    private Collection_shopsMapper shopsMapper;

    @Override
    public Integer collectionShops(Collection_shops shops) {
        return shopsMapper.collectionShops(shops);
    }

    @Override
    public Collection<Collection_shops> findAll() {
        return shopsMapper.findAll();
    }
}
